﻿<div id="menu_right">
<script src="assets/admin/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="assets/front/js/jquery.mousewheel.pack.js?v=3.1.3"></script>
<script type="text/javascript" src="assets/event/js/event.js"></script>
    <script type="text/javascript" src="<?php echo base_url()?>assets/admin/js/jquery.js"></script>
<script type="text/javascript" src="assets/fancybox/jquery.fancybox.pack.js"></script>
<link rel="stylesheet" type="text/css" href="assets/fancybox/jquery.fancybox.css" media="screen" />
 
<script type='text/javascript'>
$(function() {
			 $(".login_oauth").fancybox({
				"onUpdate"  : function() {
				  $(".fancybox-title").css({'top':'-30px', 'bottom':'auto'});
				},
		  }); // fancybox
          
          $(".logout").fancybox({
				"onUpdate"  : function() {
				  $(".fancybox-title").css({'top':'-30px', 'bottom':'auto'});
				},
		  }); // fancybox
	});
</script>

<?php
	if(!isset($_SESSION['uname']) ){
?>
<div class="login">
	<a class="login_oauth fancybox.ajax" href="<?php echo base_url(); ?>login"  > 
		<div id="img_login"></div>
	</a>	
</div>
<?php
} else{
?>
	<div class="login">
	<div class="lable_menuleft" >
Xin chào, <?php echo $_SESSION['uname']; ?>
	</div>
	<div class="lable_info" >
Số lượt vote: <?php echo $_SESSION['count_vote']; ?>
	</div>
	<div class="lable_info" >
Số lượt còn lại: <?php echo $_SESSION['count_not_vote']; ?>
	</div>
	<div  style="margin-top:10px;">
			<a class="logout fancybox.ajax" href="<?php echo base_url(); ?>logout"  > 
	           <div id="img_logout"></div>
			</a>	
			</div>
	</div>
<?php
}
?>

<ul >
	<li>
		<a  href="<?php echo base_url(); ?>the_le"  > 
			THỂ LỆ THAM GIA
		</a>	
	</li>
	<li  style="margin-top:20px;"><a  href="<?php echo base_url();  ?>giai_thuong" style="display: inline-block; text-decoration: none;"> 
		CƠ CẤU GIẢI THƯỞNG
		</a>	</li>
	<li  style="margin-top:20px;"><a  href="https://www.facebook.com/pages/Game-One-Piece-Online/1525612281003561"   > 
			LIKE US
		</a>	
	</li>
    	<li  style="margin-top:20px;"><a  href="<?php echo base_url();  ?>luot_vote" style="display: inline-block; text-decoration: none;"> 
			ĐÃ BÌNH CHỌN
		</a>	
	</li>
</ul>
</div>
</div>